package cn.ling.mini.spring.test;

import cn.ling.mini.spring.context.ClassPathXmlApplicationContext;
import cn.ling.mini.spring.exception.BeanException;

/**
 * @author LING
 * @date 2024-10-10
 */
public class BeanTest1 {

    public static void main(String[] args) throws BeanException {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("context.xml");
        IService a1Service = (IService) context.getBean("a1");
        a1Service.hi();
    }

}
